package com.relatev.minecraft.UWantRestart.Sponge;

import org.spongepowered.api.Sponge;
import org.spongepowered.api.event.Listener;
import org.spongepowered.api.event.game.state.GameLoadCompleteEvent;
import org.spongepowered.api.plugin.Plugin;
import org.spongepowered.api.plugin.PluginContainer;

@Plugin(id = "uwantrestart", name = "UWantRestart", version = "1.0.0", description = "Restart,I know what you want.")
public class UWantRestartSP {

    public static PluginContainer MainPlugin;
    @Listener
    public void onGameLoadComplete(GameLoadCompleteEvent event) {
        MainPlugin = Sponge.getPluginManager().getPlugin("uwantrestart").get();
        MainPlugin.getLogger().info("正是你需要的自动启动插件");
        MainPlugin.getLogger().info("开始启动，作者缇亚祢|群号664015345");

        SPConfigManager.init();
        SPCommandManager.init();
        SPFunctionModule.init();
    }
}
